Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 2 - Control Manager Reference / Control Manager Types and Constants


Clock Value Flag Constants

NEW WITH THE APPEARANCE MANAGER

You can pass one or more of these mask constants into the control ('CNTL') resource or in the initialValue parameter of NewControl. The clock control is editable and supports keyboard focus. The little arrows used to allow manipulation of date and time are part of the control, not a separate embedded little arrows control.

enum {
   kControlClockNoFlags       = 0,
   kControlClockIsDisplayOnly = 1,
   kControlClockIsLive        = 2
};

Constant descriptions

kControlClockNoFlags
Indicates that clock is editable but does not display the current "live" time.
kControlClockIsDisplayOnly
When only this bit is set, the clock is not editable. When this bit and the kControlClockIsLive bit is set, the clock automatically updates on idle (clock will have the current time).
kControlClockIsLive
When only this bit is set, the clock automatically updates on idle and any changes to the clock affect the system clock. When this bit and the kControlClockIsDisplayOnly bit is set, the clock automatically updates on idle (clock will have the current time), but is not editable.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998